From 105b12f807c0ff3cc7e19c9201b706a090ce4d38 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 23 May 2021 10:26:21 -0400 Subject: [PATCH] togglebutton: Fix mnemonic activation We want to grab the focus when we're focusable, so look at the focusable property. --- gtk/gtktogglebutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index 3a24a0c314..4ea135ee48 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -184,7 +184,7 @@ gtk_toggle_button_mnemonic_activate (GtkWidget *widget, * gtk_widget_real_mnemonic_activate() in order to focus the widget even * if there is no mnemonic conflict. */ - if (gtk_widget_get_can_focus (widget)) + if (gtk_widget_get_focusable (widget)) gtk_widget_grab_focus (widget); if (!group_cycling) -- 2.30.2